package com.lekang.le.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lekang.le.mapper.NursingItemPlanBindingMapper;
import com.lekang.le.domain.NursingItemPlanBinding;
import com.lekang.le.service.INursingItemPlanBindingService;

/**
 * 护理项目与护理计划中间Service业务层处理
 * 
 * @author yyh
 * @date 2025-10-16
 */
@Service
public class NursingItemPlanBindingServiceImpl implements INursingItemPlanBindingService 
{
    @Autowired
    private NursingItemPlanBindingMapper nursingItemPlanBindingMapper;

    /**
     * 查询护理项目与护理计划中间
     * 
     * @param id 护理项目与护理计划中间主键
     * @return 护理项目与护理计划中间
     */
    @Override
    public NursingItemPlanBinding selectNursingItemPlanBindingById(Long id)
    {
        return nursingItemPlanBindingMapper.selectNursingItemPlanBindingById(id);
    }

    /**
     * 查询护理项目与护理计划中间列表
     * 
     * @param nursingItemPlanBinding 护理项目与护理计划中间
     * @return 护理项目与护理计划中间
     */
    @Override
    public List<NursingItemPlanBinding> selectNursingItemPlanBindingList(NursingItemPlanBinding nursingItemPlanBinding)
    {
        return nursingItemPlanBindingMapper.selectNursingItemPlanBindingList(nursingItemPlanBinding);
    }

    /**
     * 新增护理项目与护理计划中间
     * 
     * @param nursingItemPlanBinding 护理项目与护理计划中间
     * @return 结果
     */
    @Override
    public int insertNursingItemPlanBinding(NursingItemPlanBinding nursingItemPlanBinding)
    {
        return nursingItemPlanBindingMapper.insertNursingItemPlanBinding(nursingItemPlanBinding);
    }

    /**
     * 修改护理项目与护理计划中间
     * 
     * @param nursingItemPlanBinding 护理项目与护理计划中间
     * @return 结果
     */
    @Override
    public int updateNursingItemPlanBinding(NursingItemPlanBinding nursingItemPlanBinding)
    {
        return nursingItemPlanBindingMapper.updateNursingItemPlanBinding(nursingItemPlanBinding);
    }

    /**
     * 批量删除护理项目与护理计划中间
     * 
     * @param ids 需要删除的护理项目与护理计划中间主键
     * @return 结果
     */
    @Override
    public int deleteNursingItemPlanBindingByIds(Long[] ids)
    {
        return nursingItemPlanBindingMapper.deleteNursingItemPlanBindingByIds(ids);
    }

    /**
     * 删除护理项目与护理计划中间信息
     * 
     * @param id 护理项目与护理计划中间主键
     * @return 结果
     */
    @Override
    public int deleteNursingItemPlanBindingById(Long id)
    {
        return nursingItemPlanBindingMapper.deleteNursingItemPlanBindingById(id);
    }
}
